<?php
	isset($hideNotificationBar) or $hideNotificationBar = false;
	isset($content) or $content = '';
?>
<?php echo "<?xml version=\"1.0\" ?>\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Administration Panel</title>
		<link rel="stylesheet" type="text/css" href="<?php echo publicURL('nimp-cp/style.css'); ?>" />
		<link rel="stylesheet" type="text/css" href="<?php echo publicURL('nimp-cp/components.css'); ?>" />
		<script src="<?php echo publicURL('nimp-cp/script.js'); ?>"></script>
	</head>
	<body>
		<div class="panel">
			<?php
				foreach($tabs as $k => $t): 
			?>
			<a class="item" href="<?php echo appURL(__APPLICATION__, $k); ?>"><?php echo $t->getTabName(); ?></a>
			<?php
				endforeach;
			?>
		</div>
		<div class="notification-area<?php if(empty($notificationBar)) echo ' hidden'; ?>">
			<?php
				if(!empty($notificationBar)){
					if($notificationBar instanceof Emittable){
						echo $notificationBar->emit();
					}else{
						echo $notificationBar;
					}
				}
			?>
		</div>
		<div class="<?php if(empty($notificationBar)) echo 'headline-spacer-without-notification'; else echo 'headline-spacer'; ?>"></div>
		<div class="content">
			<?php
				if($content instanceof Emittable){
					echo $content->emit();
				}else{
					echo $content;
				}
			?>
		</div>
		<div class="footer-spacer"></div>
		<div class="footer-container">
			<div class="footer">
				<div class="mitem">
					<span class="headline">options</span>
					<a class="msub-item" href="<?php echo appURL(__APPLICATION__, 'logout'); ?>">logout</a>
				</div>
				<a href="?asd" class="item">asd</a>
			</div>
		</div>
	</body>
</html>